﻿using Modules.System.Role;
using PmSoft;
using System.ComponentModel.DataAnnotations;
using static Modules.Project.ProjectConstants;

namespace ManagementApi.Models.System.Role
{
    public class RoleEditForm
    {
        /// <summary>
        /// 角色Id 
        ///</summary>
        public int RoleId { get; set; }

        /// <summary>
        /// 角色名称 
        ///</summary>
        [Display(Name = "角色名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 角色编码 
        ///</summary>
        [Display(Name = "角色编码")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 显示顺序 
        ///</summary>
        public int? Sort { get; set; }
        /// <summary>
        /// 行业分类
        /// </summary>
        [Display(Name = "行业分类")]
        public 行业主管部门? IndustryType {  get; set; }

        /// <summary>
        /// 角色状态(1-正常；0-停用) 
        ///</summary>
        public RoleStatus Status { get; set; }

    }
}
